.class public Lcom/xingbook/ui/ad;
.super Landroid/view/View;


# instance fields
.field private A:I

.field private B:I

.field private C:I

.field private D:Z

.field private E:Z

.field private F:I

.field private G:I

.field private H:Landroid/graphics/RectF;

.field private I:Landroid/graphics/Rect;

.field private J:Landroid/graphics/RectF;

.field private K:Z

.field private L:I

.field private M:F

.field private N:F

.field private O:I

.field private P:Landroid/graphics/RectF;

.field private Q:Z

.field private R:I

.field private S:I

.field private T:I

.field private U:I

.field private V:I

.field private W:I

.field private Z:I

.field public a:Ljava/lang/String;

.field private aa:Z

.field private ab:Lcom/xingbook/ui/ad;

.field public b:I

.field public c:F

.field public d:I

.field public e:Landroid/graphics/Typeface;

.field public f:Ljava/lang/String;

.field public g:I

.field public h:F

.field public i:I

.field public j:F

.field public k:I

.field public l:I

.field public m:Landroid/graphics/Bitmap;

.field public n:Z

.field public o:Landroid/graphics/Bitmap;

.field public p:Z

.field public q:Landroid/graphics/Bitmap;

.field public r:I

.field public s:I

.field public t:I

.field public u:I

.field public v:I

.field public w:Z

.field public x:Landroid/graphics/Paint;

.field public y:Z

.field private z:I


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 6

    const/4 v5, 0x1

    const/4 v4, -0x1

    const/4 v3, -0x2

    const/4 v2, 0x0

    const/4 v1, 0x0

    invoke-direct {p0, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iput v4, p0, Lcom/xingbook/ui/ad;->b:I

    const/high16 v0, 0x4180

    iput v0, p0, Lcom/xingbook/ui/ad;->c:F

    const/16 v0, 0x11

    iput v0, p0, Lcom/xingbook/ui/ad;->d:I

    sget-object v0, Landroid/graphics/Typeface;->DEFAULT:Landroid/graphics/Typeface;

    iput-object v0, p0, Lcom/xingbook/ui/ad;->e:Landroid/graphics/Typeface;

    iput-object v2, p0, Lcom/xingbook/ui/ad;->f:Ljava/lang/String;

    iput v4, p0, Lcom/xingbook/ui/ad;->g:I

    const/high16 v0, 0x4180

    iput v0, p0, Lcom/xingbook/ui/ad;->h:F

    iput v1, p0, Lcom/xingbook/ui/ad;->i:I

    iput v1, p0, Lcom/xingbook/ui/ad;->z:I

    iput v1, p0, Lcom/xingbook/ui/ad;->A:I

    iput v1, p0, Lcom/xingbook/ui/ad;->B:I

    iput v1, p0, Lcom/xingbook/ui/ad;->C:I

    iput-boolean v1, p0, Lcom/xingbook/ui/ad;->D:Z

    iput-boolean v1, p0, Lcom/xingbook/ui/ad;->E:Z

    const/high16 v0, -0x100

    iput v0, p0, Lcom/xingbook/ui/ad;->F:I

    iput v3, p0, Lcom/xingbook/ui/ad;->G:I

    const/4 v0, 0x0

    iput v0, p0, Lcom/xingbook/ui/ad;->j:F

    iput v1, p0, Lcom/xingbook/ui/ad;->k:I

    iput v1, p0, Lcom/xingbook/ui/ad;->l:I

    iput-object v2, p0, Lcom/xingbook/ui/ad;->m:Landroid/graphics/Bitmap;

    iput-boolean v1, p0, Lcom/xingbook/ui/ad;->n:Z

    iput-object v2, p0, Lcom/xingbook/ui/ad;->o:Landroid/graphics/Bitmap;

    iput-boolean v1, p0, Lcom/xingbook/ui/ad;->p:Z

    iput-object v2, p0, Lcom/xingbook/ui/ad;->q:Landroid/graphics/Bitmap;

    iput v3, p0, Lcom/xingbook/ui/ad;->r:I

    iput v3, p0, Lcom/xingbook/ui/ad;->s:I

    iput v3, p0, Lcom/xingbook/ui/ad;->t:I

    iput v3, p0, Lcom/xingbook/ui/ad;->u:I

    const/16 v0, 0x10

    iput v0, p0, Lcom/xingbook/ui/ad;->v:I

    iput-boolean v1, p0, Lcom/xingbook/ui/ad;->K:Z

    iput v4, p0, Lcom/xingbook/ui/ad;->L:I

    const/4 v0, 0x3

    iput v0, p0, Lcom/xingbook/ui/ad;->O:I

    iput-boolean v1, p0, Lcom/xingbook/ui/ad;->w:Z

    iput-object v2, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    iput-boolean v1, p0, Lcom/xingbook/ui/ad;->Q:Z

    const v0, -0x777778

    iput v0, p0, Lcom/xingbook/ui/ad;->R:I

    iput v5, p0, Lcom/xingbook/ui/ad;->W:I

    iput v1, p0, Lcom/xingbook/ui/ad;->Z:I

    iput-boolean v1, p0, Lcom/xingbook/ui/ad;->aa:Z

    iput-object v2, p0, Lcom/xingbook/ui/ad;->ab:Lcom/xingbook/ui/ad;

    iput-boolean v1, p0, Lcom/xingbook/ui/ad;->y:Z

    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    iput-object v0, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    iget-object v0, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    invoke-virtual {v0, v5}, Landroid/graphics/Paint;->setFlags(I)V

    iget-object v0, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    invoke-virtual {v0, v5}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    iget-object v0, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    sget-object v1, Landroid/graphics/Paint$Align;->LEFT:Landroid/graphics/Paint$Align;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    new-instance v0, Landroid/graphics/RectF;

    invoke-direct {v0}, Landroid/graphics/RectF;-><init>()V

    iput-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    new-instance v0, Landroid/graphics/RectF;

    invoke-direct {v0}, Landroid/graphics/RectF;-><init>()V

    iput-object v0, p0, Lcom/xingbook/ui/ad;->H:Landroid/graphics/RectF;

    return-void
.end method

.method private a(FF)Z
    .locals 2

    const/4 v1, 0x0

    cmpg-float v0, p1, v1

    if-ltz v0, :cond_0

    cmpg-float v0, p2, v1

    if-ltz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v0, v0, Landroid/graphics/RectF;->right:F

    cmpl-float v0, p1, v0

    if-gtz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v0, v0, Landroid/graphics/RectF;->bottom:F

    cmpl-float v0, p2, v0

    if-gtz v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x1

    goto :goto_0
.end method


# virtual methods
.method public a()V
    .locals 1

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/xingbook/ui/ad;->K:Z

    return-void
.end method

.method public a(II)V
    .locals 1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/ui/ad;->D:Z

    iput p1, p0, Lcom/xingbook/ui/ad;->F:I

    iput p2, p0, Lcom/xingbook/ui/ad;->G:I

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/ad;->setClickable(Z)V

    return-void
.end method

.method public a(IIII)V
    .locals 1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/ui/ad;->K:Z

    iput p1, p0, Lcom/xingbook/ui/ad;->L:I

    int-to-float v0, p2

    iput v0, p0, Lcom/xingbook/ui/ad;->M:F

    int-to-float v0, p3

    iput v0, p0, Lcom/xingbook/ui/ad;->N:F

    iput p4, p0, Lcom/xingbook/ui/ad;->O:I

    return-void
.end method

.method public a(IIIII)V
    .locals 1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/ui/ad;->Q:Z

    iput p1, p0, Lcom/xingbook/ui/ad;->R:I

    iput p2, p0, Lcom/xingbook/ui/ad;->S:I

    iput p3, p0, Lcom/xingbook/ui/ad;->T:I

    iput p4, p0, Lcom/xingbook/ui/ad;->U:I

    iput p5, p0, Lcom/xingbook/ui/ad;->V:I

    return-void
.end method

.method public a(IIIIII)V
    .locals 6

    move-object v0, p0

    move v1, p1

    move v2, p3

    move v3, p4

    move v4, p5

    move v5, p6

    invoke-virtual/range {v0 .. v5}, Lcom/xingbook/ui/ad;->a(IIIII)V

    iput p2, p0, Lcom/xingbook/ui/ad;->W:I

    return-void
.end method

.method public a(Z)V
    .locals 4

    const/4 v3, 0x4

    const/4 v1, 0x2

    const/4 v2, 0x0

    if-eqz p1, :cond_2

    const/4 v0, 0x1

    :goto_0
    iput v0, p0, Lcom/xingbook/ui/ad;->Z:I

    iget v0, p0, Lcom/xingbook/ui/ad;->T:I

    if-eq v0, v3, :cond_0

    iget v0, p0, Lcom/xingbook/ui/ad;->T:I

    if-ne v0, v1, :cond_3

    :cond_0
    iget v0, p0, Lcom/xingbook/ui/ad;->l:I

    :goto_1
    iget v1, p0, Lcom/xingbook/ui/ad;->T:I

    if-eq v1, v3, :cond_1

    iget v1, p0, Lcom/xingbook/ui/ad;->T:I

    const/4 v3, 0x3

    if-ne v1, v3, :cond_4

    :cond_1
    iget-object v1, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v1, v1, Landroid/graphics/RectF;->right:F

    invoke-static {v1}, Ljava/lang/Math;->round(F)I

    move-result v1

    iget v3, p0, Lcom/xingbook/ui/ad;->l:I

    sub-int/2addr v1, v3

    :goto_2
    iget v3, p0, Lcom/xingbook/ui/ad;->W:I

    invoke-virtual {p0, v0, v2, v1, v3}, Lcom/xingbook/ui/ad;->invalidate(IIII)V

    return-void

    :cond_2
    move v0, v1

    goto :goto_0

    :cond_3
    move v0, v2

    goto :goto_1

    :cond_4
    iget-object v1, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v1, v1, Landroid/graphics/RectF;->right:F

    invoke-static {v1}, Ljava/lang/Math;->round(F)I

    move-result v1

    goto :goto_2
.end method

.method public a(ZLcom/xingbook/ui/ad;)V
    .locals 0

    iput-boolean p1, p0, Lcom/xingbook/ui/ad;->aa:Z

    iput-object p2, p0, Lcom/xingbook/ui/ad;->ab:Lcom/xingbook/ui/ad;

    return-void
.end method

.method public b()Lcom/xingbook/ui/ad;
    .locals 3

    new-instance v0, Lcom/xingbook/ui/ad;

    invoke-virtual {p0}, Lcom/xingbook/ui/ad;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    iget-object v1, p0, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iput-object v1, v0, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iget v1, p0, Lcom/xingbook/ui/ad;->b:I

    iput v1, v0, Lcom/xingbook/ui/ad;->b:I

    iget v1, p0, Lcom/xingbook/ui/ad;->G:I

    iput v1, v0, Lcom/xingbook/ui/ad;->G:I

    iget v1, p0, Lcom/xingbook/ui/ad;->c:F

    iput v1, v0, Lcom/xingbook/ui/ad;->c:F

    iget v1, p0, Lcom/xingbook/ui/ad;->d:I

    iput v1, v0, Lcom/xingbook/ui/ad;->d:I

    iget-object v1, p0, Lcom/xingbook/ui/ad;->f:Ljava/lang/String;

    iput-object v1, v0, Lcom/xingbook/ui/ad;->f:Ljava/lang/String;

    iget v1, p0, Lcom/xingbook/ui/ad;->g:I

    iput v1, v0, Lcom/xingbook/ui/ad;->g:I

    iget v1, p0, Lcom/xingbook/ui/ad;->h:F

    iput v1, v0, Lcom/xingbook/ui/ad;->h:F

    iget v1, p0, Lcom/xingbook/ui/ad;->i:I

    iput v1, v0, Lcom/xingbook/ui/ad;->i:I

    iget-boolean v1, p0, Lcom/xingbook/ui/ad;->D:Z

    iput-boolean v1, v0, Lcom/xingbook/ui/ad;->D:Z

    iget-boolean v1, p0, Lcom/xingbook/ui/ad;->E:Z

    iput-boolean v1, v0, Lcom/xingbook/ui/ad;->E:Z

    iget v1, p0, Lcom/xingbook/ui/ad;->F:I

    iput v1, v0, Lcom/xingbook/ui/ad;->F:I

    iget v1, p0, Lcom/xingbook/ui/ad;->j:F

    iput v1, v0, Lcom/xingbook/ui/ad;->j:F

    iget v1, p0, Lcom/xingbook/ui/ad;->k:I

    iput v1, v0, Lcom/xingbook/ui/ad;->k:I

    iget v1, p0, Lcom/xingbook/ui/ad;->l:I

    iput v1, v0, Lcom/xingbook/ui/ad;->l:I

    iget-object v1, p0, Lcom/xingbook/ui/ad;->m:Landroid/graphics/Bitmap;

    iput-object v1, v0, Lcom/xingbook/ui/ad;->m:Landroid/graphics/Bitmap;

    iget-boolean v1, p0, Lcom/xingbook/ui/ad;->p:Z

    iput-boolean v1, v0, Lcom/xingbook/ui/ad;->p:Z

    iget-object v1, p0, Lcom/xingbook/ui/ad;->o:Landroid/graphics/Bitmap;

    iput-object v1, v0, Lcom/xingbook/ui/ad;->o:Landroid/graphics/Bitmap;

    iget-object v1, p0, Lcom/xingbook/ui/ad;->q:Landroid/graphics/Bitmap;

    iput-object v1, v0, Lcom/xingbook/ui/ad;->q:Landroid/graphics/Bitmap;

    iget v1, p0, Lcom/xingbook/ui/ad;->v:I

    iput v1, v0, Lcom/xingbook/ui/ad;->v:I

    iget-boolean v1, p0, Lcom/xingbook/ui/ad;->w:Z

    iput-boolean v1, v0, Lcom/xingbook/ui/ad;->w:Z

    iget-boolean v1, p0, Lcom/xingbook/ui/ad;->K:Z

    iput-boolean v1, v0, Lcom/xingbook/ui/ad;->K:Z

    iget v1, p0, Lcom/xingbook/ui/ad;->L:I

    iput v1, v0, Lcom/xingbook/ui/ad;->L:I

    iget v1, p0, Lcom/xingbook/ui/ad;->M:F

    iput v1, v0, Lcom/xingbook/ui/ad;->M:F

    iget v1, p0, Lcom/xingbook/ui/ad;->N:F

    iput v1, v0, Lcom/xingbook/ui/ad;->N:F

    iget v1, p0, Lcom/xingbook/ui/ad;->O:I

    iput v1, v0, Lcom/xingbook/ui/ad;->O:I

    iget-object v1, v0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    invoke-virtual {v2}, Landroid/graphics/Paint;->getFlags()I

    move-result v2

    invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setFlags(I)V

    iget-object v1, v0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    invoke-virtual {v2}, Landroid/graphics/Paint;->getTextAlign()Landroid/graphics/Paint$Align;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    iget-object v1, v0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->left:F

    iput v2, v1, Landroid/graphics/RectF;->left:F

    iget-object v1, v0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->top:F

    iput v2, v1, Landroid/graphics/RectF;->top:F

    iget-object v1, v0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->right:F

    iput v2, v1, Landroid/graphics/RectF;->right:F

    iget-object v1, v0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->bottom:F

    iput v2, v1, Landroid/graphics/RectF;->bottom:F

    iget-boolean v1, p0, Lcom/xingbook/ui/ad;->Q:Z

    iput-boolean v1, v0, Lcom/xingbook/ui/ad;->Q:Z

    iget v1, p0, Lcom/xingbook/ui/ad;->R:I

    iput v1, v0, Lcom/xingbook/ui/ad;->R:I

    iget v1, p0, Lcom/xingbook/ui/ad;->S:I

    iput v1, v0, Lcom/xingbook/ui/ad;->S:I

    iget v1, p0, Lcom/xingbook/ui/ad;->T:I

    iput v1, v0, Lcom/xingbook/ui/ad;->T:I

    iget v1, p0, Lcom/xingbook/ui/ad;->U:I

    iput v1, v0, Lcom/xingbook/ui/ad;->U:I

    iget v1, p0, Lcom/xingbook/ui/ad;->V:I

    iput v1, v0, Lcom/xingbook/ui/ad;->V:I

    iget v1, p0, Lcom/xingbook/ui/ad;->W:I

    iput v1, v0, Lcom/xingbook/ui/ad;->W:I

    iget v1, p0, Lcom/xingbook/ui/ad;->C:I

    iput v1, v0, Lcom/xingbook/ui/ad;->C:I

    iget v1, p0, Lcom/xingbook/ui/ad;->z:I

    iput v1, v0, Lcom/xingbook/ui/ad;->z:I

    iget v1, p0, Lcom/xingbook/ui/ad;->A:I

    iput v1, v0, Lcom/xingbook/ui/ad;->A:I

    iget v1, p0, Lcom/xingbook/ui/ad;->B:I

    iput v1, v0, Lcom/xingbook/ui/ad;->B:I

    iget-boolean v1, p0, Lcom/xingbook/ui/ad;->y:Z

    iput-boolean v1, v0, Lcom/xingbook/ui/ad;->y:Z

    invoke-virtual {p0}, Lcom/xingbook/ui/ad;->isClickable()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/ad;->setClickable(Z)V

    return-object v0
.end method

.method public b(IIII)V
    .locals 0

    iput p1, p0, Lcom/xingbook/ui/ad;->B:I

    iput p2, p0, Lcom/xingbook/ui/ad;->z:I

    iput p3, p0, Lcom/xingbook/ui/ad;->A:I

    iput p4, p0, Lcom/xingbook/ui/ad;->C:I

    return-void
.end method

.method public synthetic clone()Ljava/lang/Object;
    .locals 1

    invoke-virtual {p0}, Lcom/xingbook/ui/ad;->b()Lcom/xingbook/ui/ad;

    move-result-object v0

    return-object v0
.end method

.method public getTextWidth()F
    .locals 2

    iget-object v0, p0, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    if-eqz v0, :cond_0

    const-string v0, ""

    iget-object v1, p0, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0

    :cond_1
    iget-object v0, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    iget v1, p0, Lcom/xingbook/ui/ad;->b:I

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    iget-object v0, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    iget v1, p0, Lcom/xingbook/ui/ad;->c:F

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextSize(F)V

    iget-object v0, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    iget-object v1, p0, Lcom/xingbook/ui/ad;->e:Landroid/graphics/Typeface;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;

    iget-object v0, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    iget-object v1, p0, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->measureText(Ljava/lang/String;)F

    move-result v0

    goto :goto_0
.end method

.method public getViewMinWidth()F
    .locals 5

    const/4 v1, 0x0

    invoke-virtual {p0}, Lcom/xingbook/ui/ad;->getTextWidth()F

    move-result v3

    iget-object v0, p0, Lcom/xingbook/ui/ad;->m:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/ui/ad;->m:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v0

    int-to-float v0, v0

    :goto_0
    iget v2, p0, Lcom/xingbook/ui/ad;->l:I

    mul-int/lit8 v2, v2, 0x2

    cmpl-float v4, v3, v1

    if-lez v4, :cond_0

    cmpl-float v1, v0, v1

    if-lez v1, :cond_0

    iget v1, p0, Lcom/xingbook/ui/ad;->l:I

    add-int/2addr v1, v2

    :goto_1
    add-float/2addr v0, v3

    int-to-float v1, v1

    add-float/2addr v0, v1

    float-to-int v0, v0

    int-to-float v0, v0

    return v0

    :cond_0
    move v1, v2

    goto :goto_1

    :cond_1
    move v0, v1

    goto :goto_0
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .locals 11

    iget-boolean v0, p0, Lcom/xingbook/ui/ad;->n:Z

    if-eqz v0, :cond_19

    iget-object v0, p0, Lcom/xingbook/ui/ad;->o:Landroid/graphics/Bitmap;

    move-object v6, v0

    :goto_0
    const/4 v0, 0x0

    iget v1, p0, Lcom/xingbook/ui/ad;->s:I

    if-lez v1, :cond_1a

    iget v0, p0, Lcom/xingbook/ui/ad;->s:I

    move v7, v0

    :goto_1
    const/4 v0, 0x0

    iget v1, p0, Lcom/xingbook/ui/ad;->r:I

    if-lez v1, :cond_1b

    iget v0, p0, Lcom/xingbook/ui/ad;->r:I

    move v8, v0

    :goto_2
    const/4 v0, 0x0

    iget-boolean v1, p0, Lcom/xingbook/ui/ad;->D:Z

    if-eqz v1, :cond_1c

    iget-boolean v1, p0, Lcom/xingbook/ui/ad;->E:Z

    if-eqz v1, :cond_1c

    iget v1, p0, Lcom/xingbook/ui/ad;->F:I

    if-eqz v1, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    iget v1, p0, Lcom/xingbook/ui/ad;->F:I

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    const/4 v0, 0x1

    :cond_0
    :goto_3
    if-eqz v0, :cond_3

    iget v0, p0, Lcom/xingbook/ui/ad;->B:I

    if-lez v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    iget v1, p0, Lcom/xingbook/ui/ad;->B:I

    int-to-float v1, v1

    iget v2, p0, Lcom/xingbook/ui/ad;->z:I

    int-to-float v2, v2

    iget v3, p0, Lcom/xingbook/ui/ad;->A:I

    int-to-float v3, v3

    iget v4, p0, Lcom/xingbook/ui/ad;->C:I

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->setShadowLayer(FFFI)V

    :cond_1
    iget v0, p0, Lcom/xingbook/ui/ad;->j:F

    const/4 v1, 0x0

    cmpl-float v0, v0, v1

    if-nez v0, :cond_1d

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget-object v1, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    invoke-virtual {p1, v0, v1}, Landroid/graphics/Canvas;->drawRect(Landroid/graphics/RectF;Landroid/graphics/Paint;)V

    :cond_2
    :goto_4
    iget v0, p0, Lcom/xingbook/ui/ad;->B:I

    if-lez v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    const/4 v1, 0x0

    const/4 v2, 0x0

    const/4 v3, 0x0

    const/4 v4, 0x0

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Paint;->setShadowLayer(FFFI)V

    :cond_3
    iget-boolean v0, p0, Lcom/xingbook/ui/ad;->Q:Z

    if-eqz v0, :cond_e

    iget-object v0, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    iget v1, p0, Lcom/xingbook/ui/ad;->W:I

    int-to-float v1, v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    iget-object v0, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    iget v1, p0, Lcom/xingbook/ui/ad;->R:I

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    iget-object v0, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    sget-object v1, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    iget v0, p0, Lcom/xingbook/ui/ad;->j:F

    const/4 v1, 0x0

    cmpl-float v0, v0, v1

    if-eqz v0, :cond_4

    iget v0, p0, Lcom/xingbook/ui/ad;->k:I

    if-eqz v0, :cond_26

    :cond_4
    iget v0, p0, Lcom/xingbook/ui/ad;->S:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_5

    const/4 v1, 0x0

    const/4 v2, 0x0

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v4, v0, Landroid/graphics/RectF;->bottom:F

    iget-object v5, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    move-object v0, p1

    invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    :cond_5
    iget v0, p0, Lcom/xingbook/ui/ad;->T:I

    if-eqz v0, :cond_9

    iget-boolean v0, p0, Lcom/xingbook/ui/ad;->aa:Z

    if-eqz v0, :cond_6

    iget-boolean v0, p0, Lcom/xingbook/ui/ad;->E:Z

    if-nez v0, :cond_9

    :cond_6
    iget v0, p0, Lcom/xingbook/ui/ad;->Z:I

    const/4 v1, 0x1

    if-eq v0, v1, :cond_9

    iget v0, p0, Lcom/xingbook/ui/ad;->T:I

    const/4 v1, 0x4

    if-eq v0, v1, :cond_7

    iget v0, p0, Lcom/xingbook/ui/ad;->T:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_22

    :cond_7
    iget v0, p0, Lcom/xingbook/ui/ad;->l:I

    :goto_5
    int-to-float v1, v0

    const/4 v2, 0x0

    iget v0, p0, Lcom/xingbook/ui/ad;->T:I

    const/4 v3, 0x4

    if-eq v0, v3, :cond_8

    iget v0, p0, Lcom/xingbook/ui/ad;->T:I

    const/4 v3, 0x3

    if-ne v0, v3, :cond_23

    :cond_8
    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v0, v0, Landroid/graphics/RectF;->right:F

    iget v3, p0, Lcom/xingbook/ui/ad;->l:I

    int-to-float v3, v3

    sub-float v3, v0, v3

    :goto_6
    const/4 v4, 0x0

    iget-object v5, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    move-object v0, p1

    invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    :cond_9
    const/4 v9, 0x0

    iget v0, p0, Lcom/xingbook/ui/ad;->U:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_a

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v0, v0, Landroid/graphics/RectF;->right:F

    int-to-float v1, v9

    sub-float v1, v0, v1

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v0, v0, Landroid/graphics/RectF;->right:F

    int-to-float v3, v9

    sub-float v3, v0, v3

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v4, v0, Landroid/graphics/RectF;->bottom:F

    iget-object v5, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    move-object v0, p1

    invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    :cond_a
    iget v0, p0, Lcom/xingbook/ui/ad;->V:I

    if-eqz v0, :cond_d

    iget v0, p0, Lcom/xingbook/ui/ad;->V:I

    const/4 v1, 0x4

    if-eq v0, v1, :cond_b

    iget v0, p0, Lcom/xingbook/ui/ad;->V:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_24

    :cond_b
    iget v0, p0, Lcom/xingbook/ui/ad;->l:I

    :goto_7
    int-to-float v1, v0

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v0, v0, Landroid/graphics/RectF;->bottom:F

    int-to-float v2, v9

    sub-float v2, v0, v2

    iget v0, p0, Lcom/xingbook/ui/ad;->V:I

    const/4 v3, 0x4

    if-eq v0, v3, :cond_c

    iget v0, p0, Lcom/xingbook/ui/ad;->V:I

    const/4 v3, 0x3

    if-ne v0, v3, :cond_25

    :cond_c
    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v0, v0, Landroid/graphics/RectF;->right:F

    iget v3, p0, Lcom/xingbook/ui/ad;->l:I

    int-to-float v3, v3

    sub-float v3, v0, v3

    :goto_8
    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v0, v0, Landroid/graphics/RectF;->bottom:F

    int-to-float v4, v9

    sub-float v4, v0, v4

    iget-object v5, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    move-object v0, p1

    invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    :cond_d
    :goto_9
    iget-object v0, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    sget-object v1, Landroid/graphics/Paint$Style;->FILL:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    :cond_e
    iget v1, p0, Lcom/xingbook/ui/ad;->t:I

    iget v0, p0, Lcom/xingbook/ui/ad;->u:I

    const/4 v2, -0x2

    if-eq v1, v2, :cond_f

    const/4 v2, -0x2

    if-ne v0, v2, :cond_10

    :cond_f
    if-eqz v6, :cond_10

    invoke-virtual {v6}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v1

    invoke-virtual {v6}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v0

    :cond_10
    const/high16 v4, -0x4080

    const/high16 v3, -0x4080

    const/4 v2, 0x0

    iget-object v5, p0, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    if-eqz v5, :cond_13

    const-string v5, ""

    iget-object v9, p0, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    invoke-virtual {v5, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_13

    iget-boolean v2, p0, Lcom/xingbook/ui/ad;->D:Z

    if-eqz v2, :cond_27

    iget-boolean v2, p0, Lcom/xingbook/ui/ad;->E:Z

    if-eqz v2, :cond_27

    iget v2, p0, Lcom/xingbook/ui/ad;->G:I

    const/4 v3, -0x2

    if-eq v2, v3, :cond_27

    iget-object v2, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    iget v3, p0, Lcom/xingbook/ui/ad;->G:I

    invoke-virtual {v2, v3}, Landroid/graphics/Paint;->setColor(I)V

    :goto_a
    iget-object v2, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    iget v3, p0, Lcom/xingbook/ui/ad;->c:F

    invoke-virtual {v2, v3}, Landroid/graphics/Paint;->setTextSize(F)V

    iget-object v2, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    iget-object v3, p0, Lcom/xingbook/ui/ad;->e:Landroid/graphics/Typeface;

    invoke-virtual {v2, v3}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    invoke-virtual {v2}, Landroid/graphics/Paint;->getFontMetrics()Landroid/graphics/Paint$FontMetrics;

    move-result-object v4

    iget-object v2, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    iget-object v3, p0, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/graphics/Paint;->measureText(Ljava/lang/String;)F

    move-result v2

    iget v3, p0, Lcom/xingbook/ui/ad;->d:I

    and-int/lit8 v3, v3, 0x3

    const/4 v5, 0x3

    if-ne v3, v5, :cond_2a

    iget-boolean v2, p0, Lcom/xingbook/ui/ad;->w:Z

    if-eqz v2, :cond_28

    iget v2, p0, Lcom/xingbook/ui/ad;->l:I

    int-to-float v2, v2

    :cond_11
    :goto_b
    iget v3, p0, Lcom/xingbook/ui/ad;->d:I

    and-int/lit8 v3, v3, 0x30

    const/16 v5, 0x30

    if-ne v3, v5, :cond_2f

    iget-boolean v3, p0, Lcom/xingbook/ui/ad;->w:Z

    if-eqz v3, :cond_2e

    if-eqz v6, :cond_2e

    iget v3, p0, Lcom/xingbook/ui/ad;->l:I

    mul-int/lit8 v3, v3, 0x2

    add-int/2addr v3, v0

    int-to-float v3, v3

    iget v5, v4, Landroid/graphics/Paint$FontMetrics;->ascent:F

    sub-float/2addr v3, v5

    :goto_c
    iget-object v5, p0, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iget-object v9, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    invoke-virtual {p1, v5, v2, v3, v9}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    iget-object v5, p0, Lcom/xingbook/ui/ad;->e:Landroid/graphics/Typeface;

    sget-object v9, Landroid/graphics/Typeface;->DEFAULT:Landroid/graphics/Typeface;

    if-eq v5, v9, :cond_12

    iget-object v5, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    sget-object v9, Landroid/graphics/Typeface;->DEFAULT:Landroid/graphics/Typeface;

    invoke-virtual {v5, v9}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;

    :cond_12
    move-object v10, v4

    move v4, v2

    move-object v2, v10

    :cond_13
    if-eqz v6, :cond_14

    iget-boolean v5, p0, Lcom/xingbook/ui/ad;->p:Z

    if-eqz v5, :cond_35

    iget-boolean v5, p0, Lcom/xingbook/ui/ad;->w:Z

    if-eqz v5, :cond_33

    const/high16 v4, -0x4080

    cmpl-float v4, v3, v4

    if-lez v4, :cond_32

    iget v4, p0, Lcom/xingbook/ui/ad;->l:I

    add-int/2addr v4, v0

    int-to-float v4, v4

    iget v2, v2, Landroid/graphics/Paint$FontMetrics;->ascent:F

    sub-float v2, v4, v2

    sub-float v2, v3, v2

    :goto_d
    iget-object v3, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v3, v3, Landroid/graphics/RectF;->right:F

    int-to-float v4, v1

    sub-float/2addr v3, v4

    const/high16 v4, 0x4000

    div-float/2addr v3, v4

    :goto_e
    invoke-virtual {v6}, Landroid/graphics/Bitmap;->isRecycled()Z

    move-result v4

    if-nez v4, :cond_14

    iget-object v4, p0, Lcom/xingbook/ui/ad;->H:Landroid/graphics/RectF;

    iput v3, v4, Landroid/graphics/RectF;->left:F

    iget-object v4, p0, Lcom/xingbook/ui/ad;->H:Landroid/graphics/RectF;

    iput v2, v4, Landroid/graphics/RectF;->top:F

    iget-object v4, p0, Lcom/xingbook/ui/ad;->H:Landroid/graphics/RectF;

    int-to-float v1, v1

    add-float/2addr v1, v3

    iput v1, v4, Landroid/graphics/RectF;->right:F

    iget-object v1, p0, Lcom/xingbook/ui/ad;->H:Landroid/graphics/RectF;

    int-to-float v0, v0

    add-float/2addr v0, v2

    iput v0, v1, Landroid/graphics/RectF;->bottom:F

    const/4 v0, 0x0

    iget-object v1, p0, Lcom/xingbook/ui/ad;->H:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    invoke-virtual {p1, v6, v0, v1, v2}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/RectF;Landroid/graphics/Paint;)V

    :cond_14
    iget-boolean v0, p0, Lcom/xingbook/ui/ad;->K:Z

    if-eqz v0, :cond_37

    iget-object v0, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    iget v1, p0, Lcom/xingbook/ui/ad;->O:I

    int-to-float v1, v1

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    iget-object v0, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    iget v1, p0, Lcom/xingbook/ui/ad;->L:I

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    iget-object v0, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    sget-object v1, Landroid/graphics/Paint$Cap;->SQUARE:Landroid/graphics/Paint$Cap;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStrokeCap(Landroid/graphics/Paint$Cap;)V

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v0, v0, Landroid/graphics/RectF;->right:F

    iget v1, p0, Lcom/xingbook/ui/ad;->l:I

    int-to-float v1, v1

    sub-float/2addr v0, v1

    iget v1, p0, Lcom/xingbook/ui/ad;->M:F

    sub-float v1, v0, v1

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v0, v0, Landroid/graphics/RectF;->bottom:F

    iget v2, p0, Lcom/xingbook/ui/ad;->N:F

    sub-float/2addr v0, v2

    const/high16 v2, 0x4000

    div-float v2, v0, v2

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v0, v0, Landroid/graphics/RectF;->right:F

    iget v3, p0, Lcom/xingbook/ui/ad;->l:I

    int-to-float v3, v3

    sub-float v3, v0, v3

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v0, v0, Landroid/graphics/RectF;->bottom:F

    const/high16 v4, 0x4000

    div-float v4, v0, v4

    iget-object v5, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    move-object v0, p1

    invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v0, v0, Landroid/graphics/RectF;->bottom:F

    iget v2, p0, Lcom/xingbook/ui/ad;->N:F

    add-float/2addr v0, v2

    const/high16 v2, 0x4000

    div-float v2, v0, v2

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v0, v0, Landroid/graphics/RectF;->right:F

    iget v3, p0, Lcom/xingbook/ui/ad;->l:I

    int-to-float v3, v3

    sub-float v3, v0, v3

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v0, v0, Landroid/graphics/RectF;->bottom:F

    const/high16 v4, 0x4000

    div-float v4, v0, v4

    iget-object v5, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    move-object v0, p1

    invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    :goto_f
    iget-object v0, p0, Lcom/xingbook/ui/ad;->q:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_17

    iget-object v0, p0, Lcom/xingbook/ui/ad;->I:Landroid/graphics/Rect;

    if-nez v0, :cond_15

    new-instance v0, Landroid/graphics/Rect;

    invoke-direct {v0}, Landroid/graphics/Rect;-><init>()V

    iput-object v0, p0, Lcom/xingbook/ui/ad;->I:Landroid/graphics/Rect;

    :cond_15
    iget-object v0, p0, Lcom/xingbook/ui/ad;->I:Landroid/graphics/Rect;

    const/4 v2, 0x0

    iput v2, v0, Landroid/graphics/Rect;->left:I

    iget-object v0, p0, Lcom/xingbook/ui/ad;->I:Landroid/graphics/Rect;

    const/4 v2, 0x0

    iput v2, v0, Landroid/graphics/Rect;->top:I

    iget-object v0, p0, Lcom/xingbook/ui/ad;->I:Landroid/graphics/Rect;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->q:Landroid/graphics/Bitmap;

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v2

    iput v2, v0, Landroid/graphics/Rect;->right:I

    iget-object v0, p0, Lcom/xingbook/ui/ad;->I:Landroid/graphics/Rect;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->q:Landroid/graphics/Bitmap;

    invoke-virtual {v2}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v2

    iput v2, v0, Landroid/graphics/Rect;->bottom:I

    iget-object v0, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    if-nez v0, :cond_16

    new-instance v0, Landroid/graphics/RectF;

    invoke-direct {v0}, Landroid/graphics/RectF;-><init>()V

    iput-object v0, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    :cond_16
    iget-object v0, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    iget v2, p0, Lcom/xingbook/ui/ad;->l:I

    int-to-float v2, v2

    sub-float v2, v1, v2

    iput v2, v0, Landroid/graphics/RectF;->right:F

    iget-object v0, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    iget v2, p0, Lcom/xingbook/ui/ad;->l:I

    add-int/2addr v2, v8

    int-to-float v2, v2

    sub-float/2addr v1, v2

    iput v1, v0, Landroid/graphics/RectF;->left:F

    iget v0, p0, Lcom/xingbook/ui/ad;->v:I

    and-int/lit8 v0, v0, 0x30

    const/16 v2, 0x30

    if-ne v0, v2, :cond_38

    iget-object v0, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    const/4 v2, 0x0

    iput v2, v0, Landroid/graphics/RectF;->top:F

    :goto_10
    iget-object v0, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->top:F

    int-to-float v3, v7

    add-float/2addr v2, v3

    iput v2, v0, Landroid/graphics/RectF;->bottom:F

    iget-object v0, p0, Lcom/xingbook/ui/ad;->q:Landroid/graphics/Bitmap;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->I:Landroid/graphics/Rect;

    iget-object v3, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    const/4 v4, 0x0

    invoke-virtual {p1, v0, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;Landroid/graphics/Rect;Landroid/graphics/RectF;Landroid/graphics/Paint;)V

    :cond_17
    iget-object v0, p0, Lcom/xingbook/ui/ad;->f:Ljava/lang/String;

    if-eqz v0, :cond_18

    const-string v0, ""

    iget-object v2, p0, Lcom/xingbook/ui/ad;->f:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_18

    iget-object v0, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    iget v2, p0, Lcom/xingbook/ui/ad;->g:I

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setColor(I)V

    iget-object v0, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    iget v2, p0, Lcom/xingbook/ui/ad;->h:F

    invoke-virtual {v0, v2}, Landroid/graphics/Paint;->setTextSize(F)V

    iget-object v0, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    invoke-virtual {v0}, Landroid/graphics/Paint;->getFontMetrics()Landroid/graphics/Paint$FontMetrics;

    move-result-object v0

    iget-boolean v2, p0, Lcom/xingbook/ui/ad;->w:Z

    if-eqz v2, :cond_3a

    iget-object v1, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v1, v1, Landroid/graphics/RectF;->right:F

    iget-object v2, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    iget-object v3, p0, Lcom/xingbook/ui/ad;->f:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/graphics/Paint;->measureText(Ljava/lang/String;)F

    move-result v2

    sub-float/2addr v1, v2

    const/high16 v2, 0x4000

    div-float/2addr v1, v2

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->bottom:F

    iget v0, v0, Landroid/graphics/Paint$FontMetrics;->descent:F

    sub-float v0, v2, v0

    iget v2, p0, Lcom/xingbook/ui/ad;->l:I

    int-to-float v2, v2

    sub-float/2addr v0, v2

    :goto_11
    iget-object v2, p0, Lcom/xingbook/ui/ad;->f:Ljava/lang/String;

    iget-object v3, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    invoke-virtual {p1, v2, v1, v0, v3}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    :cond_18
    return-void

    :cond_19
    iget-object v0, p0, Lcom/xingbook/ui/ad;->m:Landroid/graphics/Bitmap;

    move-object v6, v0

    goto/16 :goto_0

    :cond_1a
    iget-object v1, p0, Lcom/xingbook/ui/ad;->q:Landroid/graphics/Bitmap;

    if-eqz v1, :cond_3c

    iget-object v0, p0, Lcom/xingbook/ui/ad;->q:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v0

    move v7, v0

    goto/16 :goto_1

    :cond_1b
    iget-object v1, p0, Lcom/xingbook/ui/ad;->q:Landroid/graphics/Bitmap;

    if-eqz v1, :cond_3b

    iget-object v0, p0, Lcom/xingbook/ui/ad;->q:Landroid/graphics/Bitmap;

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v0

    move v8, v0

    goto/16 :goto_2

    :cond_1c
    iget v1, p0, Lcom/xingbook/ui/ad;->i:I

    if-eqz v1, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    iget v1, p0, Lcom/xingbook/ui/ad;->i:I

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    const/4 v0, 0x1

    goto/16 :goto_3

    :cond_1d
    iget v0, p0, Lcom/xingbook/ui/ad;->k:I

    if-nez v0, :cond_1e

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v1, p0, Lcom/xingbook/ui/ad;->j:F

    iget v2, p0, Lcom/xingbook/ui/ad;->j:F

    iget-object v3, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    invoke-virtual {p1, v0, v1, v2, v3}, Landroid/graphics/Canvas;->drawRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V

    goto/16 :goto_4

    :cond_1e
    iget v0, p0, Lcom/xingbook/ui/ad;->k:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_20

    new-instance v0, Landroid/graphics/Path;

    invoke-direct {v0}, Landroid/graphics/Path;-><init>()V

    iget-object v1, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v1, v1, Landroid/graphics/RectF;->left:F

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->top:F

    iget v3, p0, Lcom/xingbook/ui/ad;->j:F

    add-float/2addr v2, v3

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->moveTo(FF)V

    iget-object v1, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    if-nez v1, :cond_1f

    new-instance v1, Landroid/graphics/RectF;

    invoke-direct {v1}, Landroid/graphics/RectF;-><init>()V

    iput-object v1, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    :cond_1f
    iget-object v1, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->left:F

    iput v2, v1, Landroid/graphics/RectF;->left:F

    iget-object v1, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->top:F

    iput v2, v1, Landroid/graphics/RectF;->top:F

    iget-object v1, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->left:F

    iget v3, p0, Lcom/xingbook/ui/ad;->j:F

    const/high16 v4, 0x4000

    mul-float/2addr v3, v4

    add-float/2addr v2, v3

    iput v2, v1, Landroid/graphics/RectF;->right:F

    iget-object v1, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->top:F

    iget v3, p0, Lcom/xingbook/ui/ad;->j:F

    const/high16 v4, 0x4000

    mul-float/2addr v3, v4

    add-float/2addr v2, v3

    iput v2, v1, Landroid/graphics/RectF;->bottom:F

    iget-object v1, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    const/high16 v2, 0x4334

    const/high16 v3, 0x42b4

    invoke-virtual {v0, v1, v2, v3}, Landroid/graphics/Path;->addArc(Landroid/graphics/RectF;FF)V

    iget-object v1, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v1, v1, Landroid/graphics/RectF;->right:F

    iget v2, p0, Lcom/xingbook/ui/ad;->j:F

    sub-float/2addr v1, v2

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->top:F

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->lineTo(FF)V

    iget-object v1, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->right:F

    iget v3, p0, Lcom/xingbook/ui/ad;->j:F

    const/high16 v4, 0x4000

    mul-float/2addr v3, v4

    sub-float/2addr v2, v3

    iput v2, v1, Landroid/graphics/RectF;->left:F

    iget-object v1, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->top:F

    iput v2, v1, Landroid/graphics/RectF;->top:F

    iget-object v1, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->right:F

    iput v2, v1, Landroid/graphics/RectF;->right:F

    iget-object v1, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->top:F

    iget v3, p0, Lcom/xingbook/ui/ad;->j:F

    const/high16 v4, 0x4000

    mul-float/2addr v3, v4

    add-float/2addr v2, v3

    iput v2, v1, Landroid/graphics/RectF;->bottom:F

    iget-object v1, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    const/high16 v2, -0x3d4c

    const/high16 v3, 0x42b4

    invoke-virtual {v0, v1, v2, v3}, Landroid/graphics/Path;->addArc(Landroid/graphics/RectF;FF)V

    iget-object v1, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v1, v1, Landroid/graphics/RectF;->right:F

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->bottom:F

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->lineTo(FF)V

    iget-object v1, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v1, v1, Landroid/graphics/RectF;->left:F

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->bottom:F

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->lineTo(FF)V

    iget-object v1, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v1, v1, Landroid/graphics/RectF;->left:F

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->top:F

    iget v3, p0, Lcom/xingbook/ui/ad;->j:F

    add-float/2addr v2, v3

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->lineTo(FF)V

    invoke-virtual {v0}, Landroid/graphics/Path;->close()V

    iget-object v1, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    invoke-virtual {p1, v0, v1}, Landroid/graphics/Canvas;->drawPath(Landroid/graphics/Path;Landroid/graphics/Paint;)V

    goto/16 :goto_4

    :cond_20
    iget v0, p0, Lcom/xingbook/ui/ad;->k:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_2

    new-instance v0, Landroid/graphics/Path;

    invoke-direct {v0}, Landroid/graphics/Path;-><init>()V

    iget-object v1, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v1, v1, Landroid/graphics/RectF;->right:F

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->bottom:F

    iget v3, p0, Lcom/xingbook/ui/ad;->j:F

    sub-float/2addr v2, v3

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->moveTo(FF)V

    iget-object v1, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    if-nez v1, :cond_21

    new-instance v1, Landroid/graphics/RectF;

    invoke-direct {v1}, Landroid/graphics/RectF;-><init>()V

    iput-object v1, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    :cond_21
    iget-object v1, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->right:F

    iget v3, p0, Lcom/xingbook/ui/ad;->j:F

    const/high16 v4, 0x4000

    mul-float/2addr v3, v4

    sub-float/2addr v2, v3

    iput v2, v1, Landroid/graphics/RectF;->left:F

    iget-object v1, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->bottom:F

    iget v3, p0, Lcom/xingbook/ui/ad;->j:F

    const/high16 v4, 0x4000

    mul-float/2addr v3, v4

    sub-float/2addr v2, v3

    iput v2, v1, Landroid/graphics/RectF;->top:F

    iget-object v1, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->right:F

    iput v2, v1, Landroid/graphics/RectF;->right:F

    iget-object v1, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->bottom:F

    iput v2, v1, Landroid/graphics/RectF;->bottom:F

    iget-object v1, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    const/4 v2, 0x0

    const/high16 v3, 0x42b4

    invoke-virtual {v0, v1, v2, v3}, Landroid/graphics/Path;->addArc(Landroid/graphics/RectF;FF)V

    iget-object v1, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v1, v1, Landroid/graphics/RectF;->left:F

    iget v2, p0, Lcom/xingbook/ui/ad;->j:F

    add-float/2addr v1, v2

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->bottom:F

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->lineTo(FF)V

    iget-object v1, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->left:F

    iput v2, v1, Landroid/graphics/RectF;->left:F

    iget-object v1, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->bottom:F

    iget v3, p0, Lcom/xingbook/ui/ad;->j:F

    const/high16 v4, 0x4000

    mul-float/2addr v3, v4

    sub-float/2addr v2, v3

    iput v2, v1, Landroid/graphics/RectF;->top:F

    iget-object v1, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->left:F

    iget v3, p0, Lcom/xingbook/ui/ad;->j:F

    const/high16 v4, 0x4000

    mul-float/2addr v3, v4

    add-float/2addr v2, v3

    iput v2, v1, Landroid/graphics/RectF;->right:F

    iget-object v1, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->bottom:F

    iput v2, v1, Landroid/graphics/RectF;->bottom:F

    iget-object v1, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    const/high16 v2, 0x42b4

    const/high16 v3, 0x42b4

    invoke-virtual {v0, v1, v2, v3}, Landroid/graphics/Path;->addArc(Landroid/graphics/RectF;FF)V

    iget-object v1, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v1, v1, Landroid/graphics/RectF;->left:F

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->top:F

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->lineTo(FF)V

    iget-object v1, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v1, v1, Landroid/graphics/RectF;->right:F

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->top:F

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->lineTo(FF)V

    iget-object v1, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v1, v1, Landroid/graphics/RectF;->right:F

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->bottom:F

    iget v3, p0, Lcom/xingbook/ui/ad;->j:F

    sub-float/2addr v2, v3

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->lineTo(FF)V

    invoke-virtual {v0}, Landroid/graphics/Path;->close()V

    iget-object v1, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    invoke-virtual {p1, v0, v1}, Landroid/graphics/Canvas;->drawPath(Landroid/graphics/Path;Landroid/graphics/Paint;)V

    goto/16 :goto_4

    :cond_22
    const/4 v0, 0x0

    goto/16 :goto_5

    :cond_23
    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v3, v0, Landroid/graphics/RectF;->right:F

    goto/16 :goto_6

    :cond_24
    const/4 v0, 0x0

    goto/16 :goto_7

    :cond_25
    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v3, v0, Landroid/graphics/RectF;->right:F

    goto/16 :goto_8

    :cond_26
    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v1, p0, Lcom/xingbook/ui/ad;->j:F

    iget v2, p0, Lcom/xingbook/ui/ad;->j:F

    iget-object v3, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    invoke-virtual {p1, v0, v1, v2, v3}, Landroid/graphics/Canvas;->drawRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Paint;)V

    goto/16 :goto_9

    :cond_27
    iget-object v2, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    iget v3, p0, Lcom/xingbook/ui/ad;->b:I

    invoke-virtual {v2, v3}, Landroid/graphics/Paint;->setColor(I)V

    goto/16 :goto_a

    :cond_28
    if-eqz v6, :cond_29

    iget v2, p0, Lcom/xingbook/ui/ad;->l:I

    mul-int/lit8 v2, v2, 0x2

    add-int/2addr v2, v1

    :goto_12
    int-to-float v2, v2

    goto/16 :goto_b

    :cond_29
    iget v2, p0, Lcom/xingbook/ui/ad;->l:I

    goto :goto_12

    :cond_2a
    iget v3, p0, Lcom/xingbook/ui/ad;->d:I

    and-int/lit8 v3, v3, 0x5

    const/4 v5, 0x5

    if-ne v3, v5, :cond_2c

    iget-object v3, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v3, v3, Landroid/graphics/RectF;->right:F

    sub-float v2, v3, v2

    iget v3, p0, Lcom/xingbook/ui/ad;->l:I

    int-to-float v3, v3

    sub-float/2addr v2, v3

    iget-boolean v3, p0, Lcom/xingbook/ui/ad;->w:Z

    if-nez v3, :cond_11

    iget-object v3, p0, Lcom/xingbook/ui/ad;->q:Landroid/graphics/Bitmap;

    if-eqz v3, :cond_2b

    iget v3, p0, Lcom/xingbook/ui/ad;->l:I

    add-int/2addr v3, v8

    int-to-float v3, v3

    sub-float/2addr v2, v3

    :cond_2b
    iget-boolean v3, p0, Lcom/xingbook/ui/ad;->K:Z

    if-eqz v3, :cond_11

    iget v3, p0, Lcom/xingbook/ui/ad;->M:F

    iget v5, p0, Lcom/xingbook/ui/ad;->l:I

    int-to-float v5, v5

    add-float/2addr v3, v5

    sub-float/2addr v2, v3

    goto/16 :goto_b

    :cond_2c
    iget-boolean v3, p0, Lcom/xingbook/ui/ad;->w:Z

    if-nez v3, :cond_2d

    if-eqz v6, :cond_2d

    iget-boolean v3, p0, Lcom/xingbook/ui/ad;->p:Z

    if-eqz v3, :cond_2d

    iget-object v3, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v3, v3, Landroid/graphics/RectF;->right:F

    sub-float v2, v3, v2

    int-to-float v3, v1

    add-float/2addr v2, v3

    iget v3, p0, Lcom/xingbook/ui/ad;->l:I

    int-to-float v3, v3

    add-float/2addr v2, v3

    const/high16 v3, 0x4000

    div-float/2addr v2, v3

    goto/16 :goto_b

    :cond_2d
    iget-object v3, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v3, v3, Landroid/graphics/RectF;->right:F

    sub-float v2, v3, v2

    const/high16 v3, 0x4000

    div-float/2addr v2, v3

    goto/16 :goto_b

    :cond_2e
    iget v3, p0, Lcom/xingbook/ui/ad;->l:I

    int-to-float v3, v3

    iget v5, v4, Landroid/graphics/Paint$FontMetrics;->ascent:F

    sub-float/2addr v3, v5

    goto/16 :goto_c

    :cond_2f
    iget v3, p0, Lcom/xingbook/ui/ad;->d:I

    and-int/lit8 v3, v3, 0x50

    const/16 v5, 0x50

    if-ne v3, v5, :cond_30

    iget-object v3, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v3, v3, Landroid/graphics/RectF;->bottom:F

    iget v5, p0, Lcom/xingbook/ui/ad;->l:I

    int-to-float v5, v5

    sub-float/2addr v3, v5

    iget v5, v4, Landroid/graphics/Paint$FontMetrics;->descent:F

    sub-float/2addr v3, v5

    goto/16 :goto_c

    :cond_30
    iget-boolean v3, p0, Lcom/xingbook/ui/ad;->w:Z

    if-eqz v3, :cond_31

    if-eqz v6, :cond_31

    iget-boolean v3, p0, Lcom/xingbook/ui/ad;->p:Z

    if-eqz v3, :cond_31

    iget-object v3, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v3, v3, Landroid/graphics/RectF;->bottom:F

    iget v5, v4, Landroid/graphics/Paint$FontMetrics;->descent:F

    iget v9, v4, Landroid/graphics/Paint$FontMetrics;->ascent:F

    sub-float/2addr v5, v9

    sub-float/2addr v3, v5

    iget v5, p0, Lcom/xingbook/ui/ad;->l:I

    int-to-float v5, v5

    sub-float/2addr v3, v5

    int-to-float v5, v0

    sub-float/2addr v3, v5

    const/high16 v5, 0x4000

    div-float/2addr v3, v5

    int-to-float v5, v0

    add-float/2addr v3, v5

    iget v5, p0, Lcom/xingbook/ui/ad;->l:I

    int-to-float v5, v5

    add-float/2addr v3, v5

    iget v5, v4, Landroid/graphics/Paint$FontMetrics;->ascent:F

    sub-float/2addr v3, v5

    goto/16 :goto_c

    :cond_31
    iget-object v3, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v3, v3, Landroid/graphics/RectF;->bottom:F

    iget v5, v4, Landroid/graphics/Paint$FontMetrics;->descent:F

    sub-float/2addr v3, v5

    iget v5, v4, Landroid/graphics/Paint$FontMetrics;->ascent:F

    sub-float/2addr v3, v5

    const/high16 v5, 0x4000

    div-float/2addr v3, v5

    goto/16 :goto_c

    :cond_32
    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->bottom:F

    int-to-float v3, v0

    sub-float/2addr v2, v3

    const/high16 v3, 0x4000

    div-float/2addr v2, v3

    goto/16 :goto_d

    :cond_33
    const/high16 v2, -0x4080

    cmpl-float v2, v4, v2

    if-lez v2, :cond_34

    iget v2, p0, Lcom/xingbook/ui/ad;->l:I

    add-int/2addr v2, v1

    int-to-float v2, v2

    sub-float v2, v4, v2

    :goto_13
    iget-object v3, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v3, v3, Landroid/graphics/RectF;->bottom:F

    int-to-float v4, v0

    sub-float/2addr v3, v4

    const/high16 v4, 0x4000

    div-float/2addr v3, v4

    move v10, v3

    move v3, v2

    move v2, v10

    goto/16 :goto_e

    :cond_34
    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->right:F

    int-to-float v3, v1

    sub-float/2addr v2, v3

    const/high16 v3, 0x4000

    div-float/2addr v2, v3

    goto :goto_13

    :cond_35
    iget-boolean v2, p0, Lcom/xingbook/ui/ad;->w:Z

    if-eqz v2, :cond_36

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->right:F

    int-to-float v3, v1

    sub-float/2addr v2, v3

    const/high16 v3, 0x4000

    div-float v3, v2, v3

    iget v2, p0, Lcom/xingbook/ui/ad;->l:I

    int-to-float v2, v2

    goto/16 :goto_e

    :cond_36
    iget v2, p0, Lcom/xingbook/ui/ad;->l:I

    int-to-float v3, v2

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->bottom:F

    int-to-float v4, v0

    sub-float/2addr v2, v4

    const/high16 v4, 0x4000

    div-float/2addr v2, v4

    goto/16 :goto_e

    :cond_37
    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v1, v0, Landroid/graphics/RectF;->right:F

    goto/16 :goto_f

    :cond_38
    iget v0, p0, Lcom/xingbook/ui/ad;->v:I

    and-int/lit8 v0, v0, 0x50

    const/16 v2, 0x50

    if-ne v0, v2, :cond_39

    iget-object v0, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->bottom:F

    int-to-float v3, v7

    sub-float/2addr v2, v3

    iput v2, v0, Landroid/graphics/RectF;->top:F

    goto/16 :goto_10

    :cond_39
    iget-object v0, p0, Lcom/xingbook/ui/ad;->J:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->bottom:F

    int-to-float v3, v7

    sub-float/2addr v2, v3

    const/high16 v3, 0x4000

    div-float/2addr v2, v3

    iput v2, v0, Landroid/graphics/RectF;->top:F

    goto/16 :goto_10

    :cond_3a
    iget-object v2, p0, Lcom/xingbook/ui/ad;->x:Landroid/graphics/Paint;

    iget-object v3, p0, Lcom/xingbook/ui/ad;->f:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/graphics/Paint;->measureText(Ljava/lang/String;)F

    move-result v2

    iget v3, p0, Lcom/xingbook/ui/ad;->l:I

    int-to-float v3, v3

    add-float/2addr v2, v3

    sub-float/2addr v1, v2

    iget-object v2, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->bottom:F

    iget v3, v0, Landroid/graphics/Paint$FontMetrics;->descent:F

    sub-float/2addr v2, v3

    iget v0, v0, Landroid/graphics/Paint$FontMetrics;->ascent:F

    sub-float v0, v2, v0

    const/high16 v2, 0x4000

    div-float/2addr v0, v2

    goto/16 :goto_11

    :cond_3b
    move v8, v0

    goto/16 :goto_2

    :cond_3c
    move v7, v0

    goto/16 :goto_1
.end method

.method protected onLayout(ZIIII)V
    .locals 4

    const/4 v3, 0x0

    iget v0, p0, Lcom/xingbook/ui/ad;->B:I

    if-lez v0, :cond_4

    iget v0, p0, Lcom/xingbook/ui/ad;->z:I

    if-lez v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iput v3, v0, Landroid/graphics/RectF;->left:F

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    sub-int v1, p4, p2

    iget v2, p0, Lcom/xingbook/ui/ad;->z:I

    sub-int/2addr v1, v2

    iget v2, p0, Lcom/xingbook/ui/ad;->B:I

    sub-int/2addr v1, v2

    int-to-float v1, v1

    iput v1, v0, Landroid/graphics/RectF;->right:F

    :goto_0
    iget v0, p0, Lcom/xingbook/ui/ad;->A:I

    if-lez v0, :cond_2

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iput v3, v0, Landroid/graphics/RectF;->top:F

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    sub-int v1, p5, p3

    iget v2, p0, Lcom/xingbook/ui/ad;->A:I

    sub-int/2addr v1, v2

    iget v2, p0, Lcom/xingbook/ui/ad;->B:I

    sub-int/2addr v1, v2

    int-to-float v1, v1

    iput v1, v0, Landroid/graphics/RectF;->bottom:F

    :goto_1
    invoke-super/range {p0 .. p5}, Landroid/view/View;->onLayout(ZIIII)V

    return-void

    :cond_0
    iget v0, p0, Lcom/xingbook/ui/ad;->z:I

    if-gez v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v1, p0, Lcom/xingbook/ui/ad;->z:I

    rsub-int/lit8 v1, v1, 0x0

    iget v2, p0, Lcom/xingbook/ui/ad;->B:I

    add-int/2addr v1, v2

    int-to-float v1, v1

    iput v1, v0, Landroid/graphics/RectF;->left:F

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    sub-int v1, p4, p2

    int-to-float v1, v1

    iput v1, v0, Landroid/graphics/RectF;->right:F

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v1, p0, Lcom/xingbook/ui/ad;->B:I

    int-to-float v1, v1

    iput v1, v0, Landroid/graphics/RectF;->left:F

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    sub-int v1, p4, p2

    iget v2, p0, Lcom/xingbook/ui/ad;->B:I

    sub-int/2addr v1, v2

    int-to-float v1, v1

    iput v1, v0, Landroid/graphics/RectF;->right:F

    goto :goto_0

    :cond_2
    iget v0, p0, Lcom/xingbook/ui/ad;->A:I

    if-gez v0, :cond_3

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v1, p0, Lcom/xingbook/ui/ad;->A:I

    rsub-int/lit8 v1, v1, 0x0

    iget v2, p0, Lcom/xingbook/ui/ad;->B:I

    add-int/2addr v1, v2

    int-to-float v1, v1

    iput v1, v0, Landroid/graphics/RectF;->top:F

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    sub-int v1, p5, p3

    int-to-float v1, v1

    iput v1, v0, Landroid/graphics/RectF;->bottom:F

    goto :goto_1

    :cond_3
    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    iget v1, p0, Lcom/xingbook/ui/ad;->B:I

    int-to-float v1, v1

    iput v1, v0, Landroid/graphics/RectF;->top:F

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    sub-int v1, p5, p3

    iget v2, p0, Lcom/xingbook/ui/ad;->B:I

    sub-int/2addr v1, v2

    int-to-float v1, v1

    iput v1, v0, Landroid/graphics/RectF;->bottom:F

    goto :goto_1

    :cond_4
    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    sub-int v1, p4, p2

    int-to-float v1, v1

    iput v1, v0, Landroid/graphics/RectF;->right:F

    iget-object v0, p0, Lcom/xingbook/ui/ad;->P:Landroid/graphics/RectF;

    sub-int v1, p5, p3

    int-to-float v1, v1

    iput v1, v0, Landroid/graphics/RectF;->bottom:F

    goto :goto_1
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 4

    const/4 v0, 0x1

    const/4 v3, 0x0

    invoke-virtual {p0}, Lcom/xingbook/ui/ad;->isClickable()Z

    move-result v1

    if-eqz v1, :cond_2

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v1

    packed-switch v1, :pswitch_data_0

    :cond_0
    :goto_0
    return v0

    :pswitch_0
    iget-boolean v1, p0, Lcom/xingbook/ui/ad;->D:Z

    if-eqz v1, :cond_0

    iput-boolean v0, p0, Lcom/xingbook/ui/ad;->E:Z

    invoke-virtual {p0}, Lcom/xingbook/ui/ad;->invalidate()V

    iget-object v1, p0, Lcom/xingbook/ui/ad;->ab:Lcom/xingbook/ui/ad;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/xingbook/ui/ad;->ab:Lcom/xingbook/ui/ad;

    invoke-virtual {v1, v0}, Lcom/xingbook/ui/ad;->a(Z)V

    goto :goto_0

    :pswitch_1
    iget-boolean v1, p0, Lcom/xingbook/ui/ad;->D:Z

    if-eqz v1, :cond_1

    iput-boolean v3, p0, Lcom/xingbook/ui/ad;->E:Z

    invoke-virtual {p0}, Lcom/xingbook/ui/ad;->invalidate()V

    iget-object v1, p0, Lcom/xingbook/ui/ad;->ab:Lcom/xingbook/ui/ad;

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/xingbook/ui/ad;->ab:Lcom/xingbook/ui/ad;

    invoke-virtual {v1, v3}, Lcom/xingbook/ui/ad;->a(Z)V

    :cond_1
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v2

    invoke-direct {p0, v1, v2}, Lcom/xingbook/ui/ad;->a(FF)Z

    move-result v1

    if-nez v1, :cond_0

    invoke-virtual {p0}, Lcom/xingbook/ui/ad;->performClick()Z

    goto :goto_0

    :pswitch_2
    iget-boolean v1, p0, Lcom/xingbook/ui/ad;->D:Z

    if-eqz v1, :cond_0

    iput-boolean v3, p0, Lcom/xingbook/ui/ad;->E:Z

    invoke-virtual {p0}, Lcom/xingbook/ui/ad;->invalidate()V

    iget-object v1, p0, Lcom/xingbook/ui/ad;->ab:Lcom/xingbook/ui/ad;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/xingbook/ui/ad;->ab:Lcom/xingbook/ui/ad;

    invoke-virtual {v1, v3}, Lcom/xingbook/ui/ad;->a(Z)V

    goto :goto_0

    :pswitch_3
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v1

    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v2

    invoke-direct {p0, v1, v2}, Lcom/xingbook/ui/ad;->a(FF)Z

    move-result v1

    if-eqz v1, :cond_0

    iget-boolean v1, p0, Lcom/xingbook/ui/ad;->D:Z

    if-eqz v1, :cond_0

    iput-boolean v3, p0, Lcom/xingbook/ui/ad;->E:Z

    invoke-virtual {p0}, Lcom/xingbook/ui/ad;->invalidate()V

    iget-object v1, p0, Lcom/xingbook/ui/ad;->ab:Lcom/xingbook/ui/ad;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/xingbook/ui/ad;->ab:Lcom/xingbook/ui/ad;

    invoke-virtual {v1, v3}, Lcom/xingbook/ui/ad;->a(Z)V

    goto :goto_0

    :cond_2
    iget-boolean v0, p0, Lcom/xingbook/ui/ad;->y:Z

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_3
        :pswitch_2
    .end packed-switch
.end method

.method public setHilighted(I)V
    .locals 1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/xingbook/ui/ad;->D:Z

    iput p1, p0, Lcom/xingbook/ui/ad;->F:I

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/ad;->setClickable(Z)V

    return-void
.end method

.method public setOnClickListener(Landroid/view/View$OnClickListener;)V
    .locals 1

    invoke-super {p0, p1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    if-nez p1, :cond_0

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/ad;->setClickable(Z)V

    :goto_0
    return-void

    :cond_0
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/ad;->setClickable(Z)V

    goto :goto_0
.end method
